import { Post } from '../../config.js'

class Api {
  /**
   * 商品详情
   * @param {string} uid 用户id
   * @param {string} pwd 用户密码
   * @return {promise} api
   */
  login ({ uid, pwd }) {
    const data = {
      Copyright: 'v1',
      Interface: 'AdminUser',
      Command: 'loginByuid',
      Params: { uid, pwd }
    }
    return Post(data)
  }
}

const LoginService = new Api()
export default LoginService
